<?php global $has_permit; ?>
<div class="clearfix auto_height">
<div class="db_left bl">
    <?php $this->load->view('cms/article/side_block'); ?>
</div>
<div class="db_right bl">
<?php if ($has_permit) :?>
<form data-result-id="ajax_result" class="ajax_form" action="<?php echo $form_action; ?>" method="post" id="frm_article_gridview">
<div id="ajax_result">
    <?php $this->load->view('cms/article/ajax/list'); ?>
</div>
</form>
<?php else :?>
    <?php $this->load->view('layouts/restricted'); ?>
<?php endif; ?>
</div>
</div>

<script type="text/javascript" src="<?php echo BASE_URL; ?>js/admin/cms/article/function.js"></script>
<script type="text/javascript">
    $(".record_per_page").val("<?php echo $record_per_page; ?>");
    $(".record_per_page").change(function() {
        var val = $(this).val();
        $(".record_per_page").val(val);
        return admin_cms_article.act_filter();
    });
</script>